﻿#include "Test.h"
#include "TestSql.h"
#include "TestGDAL.h"
#include "TestNetcdf.h"
#include "TestSqlite.h"
#include "TestHTTP.h"
#include "PackSqlite.h"
#include "asc2w3dm.h"
#include "MapDownload.h"
#include "ConvertGeojson.h"
#if WIN32
#include "testReadPBF.h"
#endif
#include "testTiff.h"
#include "testNpy.h"
#include "testStreamline.h"
#include "OCGIS/TiffTiling.h"
#include "csv2json.h"

void OCTest::start()
{


#if 0
	String fileName = "e:/test/Temperature_height_above_ground_2m_20231120200000.tiff";

	//String fileName = "e:/test/CMAGFS_202312221200_TCC_202312221500_0_4326.tif";
	String baseName, ext, path;
	StringUtil::splitFullFilename(fileName, baseName, ext, path);
	String outPath = joinPath("F:/opt/data/Assets/tiff", baseName);

	//TiffTiling tiling(360, 180);
	//tiling.numberOfLevelZeroTilesX = 1;
	//tiling.maxTileLevel = -1;
	//tiling.run(fileName, outPath);

	TiffTiling tiling(438, 376);
	tiling.numberOfLevelZeroTilesX = 1;
	tiling.maxTileLevel = -1;
	tiling.run(fileName, outPath);
#endif
}

